package com.hlkj.pay.service.common;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import com.hlkj.framework.common.pojo.PageResult;
import com.hlkj.pay.enums.CommonEnum;
import com.hlkj.pay.dto.common.CommonAppQueryDto;
import com.hlkj.pay.infrastructure.model.common.CommonAppDO;

import java.util.List;
/**
 * @author HlpayTeam
 * @date 2024/09/27 13:10
 */
public interface ICommonAppConfigService {
	/**
	 * page query
	 * @param commonAppQueryDto
	 * @return
	 */
	PageResult<CommonAppDO> queryPage(CommonAppQueryDto commonAppQueryDto);
	/**
	 * list query
	 * @param commonAppQueryDto
	 * @return
	 */
	List<CommonAppDO> queryList(CommonAppQueryDto commonAppQueryDto);
	/**
	 * list query
	 * @param ids
	 * @return
	 */
	List<CommonAppDO> queryListByIds(List<Long> ids);
	/**
	 * detail query
	 * @param id
	 * @return
	 */
	CommonAppDO detail(Long id);
	/**
	 * detail query
	 * @param appId
	 * @return
	 */
	CommonAppDO detail(String appId,CommonEnum.COMMON_APP_TYPE commonAppType);
	/**
	 * add
	 * @param commonAppDO
	 */
	void addCommonApp(CommonAppDO commonAppDO);
	/**
	 * update
	 * @param commonAppDO
	 */
	void updateCommonApp(CommonAppDO commonAppDO);
	/**
	 *
	 * @param id
	 * @param yesNoType
	 */
	void statusUpdate(Long id, CommonEnum.YES_NO_TYPE yesNoType);
	/**
	 * delete
	 * @param id
	 */
	void deleteCommonApp(Long id);
}
